﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.fminutes.vinciDll.analyze {
    import com.fminutes.vinciDll.*;
    import flash.utils.*;
    import com.adobe.serialization.json.*;

    public class JsonAnalyze extends AnalyzeBase {

        private var jsonList:Object;

        public function JsonAnalyze(){
            this.jsonList = {};
            super();
        }
        override public function analyze(_arg1:ByteArray, _arg2:DllFileObject, _arg3:Function):void{
            _arg1.position = 0;
            var _local4:String = _arg1.readUTFBytes(_arg1.length);
            _arg2.result = JSON.decode(_local4);
            _arg2.status = DllFileObject.LOADED;
            this.jsonList[_arg2.name] = _arg2.result;
            _arg3();
        }
        public function getJsonObjectByName(_arg1:String):Object{
            var _local2:Object = this.jsonList[_arg1];
            if (!_local2){
                _local2 = {};
            };
            return (_local2);
        }

    }
}//package com.fminutes.vinciDll.analyze 
